package com.qin.malldiscount.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qin.malldiscount.domain.SmsHomeAdvertise;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 首页广告管理Service
* @author 覃剑
* @description 针对表【sms_home_advertise(首页轮播广告表)】的数据库操作Service
* @createDate 2022-11-24 10:42:56
*/
public interface SmsHomeAdvertiseService extends IService<SmsHomeAdvertise> {

    /**
     * 添加广告
     */
    int create(SmsHomeAdvertise advertise);

    /**
     * 批量删除广告
     */
    int delete(List<Long> ids);

    /**
     * 修改上、下线状态
     */
    int updateStatus(Long id, Integer status);

    /**
     * 获取广告详情
     */
    SmsHomeAdvertise getItem(Long id);

    /**
     * 更新广告
     */
    int update(Long id, SmsHomeAdvertise advertise);

    /**
     * 分页查询广告
     */
    Page<SmsHomeAdvertise> list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum);


}
